from django.db import models


# Create your models here.


class Delay_task(models.Model):
    '''
    异步ID表
    '''
    delay_id = models.CharField(max_length=64, verbose_name='异步ID号')
    field1 = models.CharField(max_length=16, null=True, verbose_name='预留字段1')
    field2 = models.CharField(max_length=16, null=True, verbose_name='预留字段2')

    def ver_name_time(self):
        return self.delay_id

    class Meta:
        db_table = 'ops_delay_task'
        verbose_name = '异步ID表'
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.delay_id
